Skip to content

Add missing "three/addons" entry to importmap of splat-dissolve-effects example#310

Merged
dmarcos merged 1 commit intosparkjsdev:mainfrom
mrxz:fix-dissolve-effects-example
Apr 29, 2026
Merged

Add missing "three/addons" entry to importmap of splat-dissolve-effects example#310
dmarcos merged 1 commit intosparkjsdev:mainfrom
mrxz:fix-dissolve-effects-example

Conversation

@mrxz
Copy link
Copy Markdown
Collaborator

@mrxz mrxz commented Apr 21, 2026

The hosted version of the splat-dissolve-effects is currently broken due to a missing import map entry. Opening https://sparkjs.dev/examples/#splat-dissolve-effects logs the following error in the console:

Uncaught TypeError: The specifier “three/addons/controls/OrbitControls.js” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”.

When using npm run dev the error does not show up as Vite ignores the importmap and is able to properly resolve the three/addon/ import.

This PR adds the missing entry to the importmap of the example, resolving the issue.

@dmarcos dmarcos merged commit f2cdf15 into sparkjsdev:main Apr 29, 2026
2 checks passed
@dmarcos
Copy link
Copy Markdown
Contributor

dmarcos commented Apr 29, 2026

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants